import { pluginManager } from "epic-designer";

import { setupPublicMethod } from './script/index'
import { setupComponent } from './components/index'
// 安装扩展
export function setupDesignerExtensions(): void {
  // 添加公共函数
  setupPublicMethod()
  
  // 注册组件
  setupComponent()
  
  // 添加右侧模块
  pluginManager.registerRightSidebar({
    id: "test_view",
    title: "扩展",
    component: async () => await import("./sidebar/TestView/index.vue"),
  });
    // 添加右侧模块
    pluginManager.registerActivitybar({
      icon: "icon-chukusaomiao",
      id: "test_view",
      title: "扩展",
      component: async () => await import("./sidebar/TestView/index.vue"),
    });


}
